﻿@model MinistryStandardPlatformEntity.InfoStaff

@{
    Layout = "~/Views/Shared/_CommonLayout.cshtml";
}
<style>
    tr td:nth-child(2n)
    {
        text-align: left;
    }

    tr td:nth-child(2n+1)
    {
        text-align: right;
    }

    td
    {
        vertical-align: middle;
        height:40px;
    }
  
    input[type='checkbox']
    {
        vertical-align: middle;
    }

    input[type='text']
    {
        width: 150px;
    }

    select
    {
        width: 150px;
    }
</style>
<script src="~/Scripts/project/operationmanagestaffcreate.js"></script>
<div style="text-align:center;">
    <form action="/Staff/Edit" method="post" id="staffcreateform">
        @Html.HiddenFor(model=>model.StaffId)
    <table style="width:98%;">
        <tr>
            <td><label class="required">*</label>姓名：</td>
            <td>@Html.TextBoxFor( model=>model.StaffName)</td>
            <td rowspan="3">照片：</td>
            <td rowspan="3"  style="text-align:center;">
                @*<input type="image"  style="border:1px solid;height:120px;width:80px;"/>*@
            </td>
        </tr>
        <tr>
            <td><label class="required">*</label>性别：</td>
            <td>
                <select name="SexType">
                    <option selected='@(Model.SexType=="男")' value="男">男</option>
                    <option selected='@(Model.SexType=="女")' value="女">女</option>
                </select>
            </td>
        </tr>
        <tr>
            <td><label class="required">*</label>类别：</td>
            <td>@Html.DropDownListFor(model=>model.StaffType,@ViewBag.StaffType as SelectList, new { @id="StaffType"})</td>
        </tr>
        <tr>
            <td><label class="required">*</label>所属单位：</td>
            <td>
                <input type="text" readonly="readonly" style="vertical-align:middle;width:115px" id="PARTENTUNITNAME" value="@{ if (@Model.InfoUnit != null){@Model.InfoUnit.UNITNAME}}"/>
                @Html.HiddenFor(model=>model.ParentUnitId,new {@id="ParentUnitId"})
                <img id="selectParentUnit" src="~/Images/search.png" style="vertical-align:middle;" />
            </td>
            <td>联系电话：</td>
            <td>@Html.TextBoxFor( model=>model.ContactTel, new { @style = "width: 100%;" })</td>        
        </tr>
        <tr>
            <td>备注：</td>
            <td colspan="3">
                <textarea name="Fmemo" rows="3" style="width:100%;resize:none;">@Model.Memo</textarea>
            </td>
        </tr>
        <tr>
            <td colspan="4" style="text-align:center;">
                <input type="button" value="确定" class="radius" id="submitBtn"/>
                <input type="button" value="取消" class="radius" id="cancelBtn" onclick="javascript:window.top.art.dialog.get('operationmanagestaffcreate').close();"/>
                <div style="height:30px;"><label class="alert" id="result">@ViewBag.Message</label></div>
            </td>
        </tr>
    </table>
        </form>
</div>